import request from '@/utils/request'

const API = "/admin/hospital"

export default{
    findPage(pageNum,pageSize,searchObj) {
        return request({
          url: `${API}/findPage/${pageNum}/${pageSize}`,
          method: 'post',
          data: searchObj
        })
    },
    updateStatus(id,status) {
      return request({
        url: `${API}/updateStatus/${id}/${status}`,
        method: 'put',
      })
    } ,
    getHospById(id) {
      return request({
        url: `${API}/getHospById/${id}`,
        method: 'get',
      })
    } ,
    //查看医院科室
    getDeptByHoscode(hoscode) {
      return request ({
      url: `${API}/getDeptList/${hoscode}`,
      method: 'get'
      })
    }
} 